Skip to main content

StringTakeDrop

StringTakeDrop["string",n] gives a pair of strings containing the first n characters in "string" and the remaining characters.

StringTakeDrop["string",seq] gives the pair {StringTake["string",seq],StringDrop["string",seq]}.

Please visit the official Wolfram Language Reference for more details and examples on core symbols.